package com.fr.schedule.dao;

import java.io.BufferedReader;
import java.io.File;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintStream;

public class StartDB
{
  public static void main(String[] paramArrayOfString)
  {
    File localFile = new File("D:/FineReport/develop/code/schedule/db/server.bat");
    run(localFile.getPath());
  }

  public static void run(String paramString)
  {
    String str1;
    try
    {
      str1 = paramString;
      Process localProcess = Runtime.getRuntime().exec(str1);
      InputStream localInputStream = localProcess.getInputStream();
      BufferedReader localBufferedReader = new BufferedReader(new InputStreamReader(localInputStream));
      for (String str2 = localBufferedReader.readLine().toString(); str2 != null; str2 = localBufferedReader.readLine().toString())
        System.out.println(str2);
      try
      {
        localProcess.waitFor();
        localBufferedReader.close();
        localInputStream.close();
      }
      catch (Exception localException2)
      {
        localException2.printStackTrace();
      }
    }
    catch (Exception localException1)
    {
      localException1.printStackTrace();
    }
  }
}